//
//  SecondDetailCollectionViewCell.m
//  bh
//
//  Created by lanou on 15/12/21.
//  Copyright © 2015年 lanou. All rights reserved.
//

#import "SecondDetailCollectionViewCell.h"

@implementation SecondDetailCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        
        CGFloat totalWtidth = self.frame.size.width;
        CGFloat totalHeigth = self.frame.size.height;
        
        _pictureView = [[UIImageView alloc]initWithFrame:(CGRectMake(0, 15, totalWtidth, totalHeigth))];
        
        [self addSubview:_pictureView];
        
    }

    return self;
    
}

- (void)setPicture:(Picture *)picture{
    if (_picture != picture) {
        _picture = picture;
        [_pictureView setImageWithURL:[NSURL URLWithString:picture.author_face]];
        
    }
    
    
}





@end
